
<!DOCTYPE html>
<html lang="zh-tw">
	<head>
		<meta charset="utf-8" />
		<title>消息队列监控台 | Houze</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<link rel="shortcut icon " type="images/x-icon" href="/favicon.ico">
		<link href="/assets/css/bootstrap.min.css" id="bootstrap-stylesheet" rel="stylesheet" type="text/css" />
		<link href="/assets/css/icon.css" rel="stylesheet" type="text/css" />
		<link href="/assets/css/style.css" rel="stylesheet" type="text/css" />
	</head>

    <body class="authentication-bg" style="background-image:url(/assets/images/big/bg-light-img.jpg)">
         <div class="product-nsma">
			消息队列监控台
		 </div>
      
		<div class="card">
			<div class="card-body p-4">
				<div class="text-center mb-4">
					<h2 class="text-uppercase mt-0">欢迎登入</h2>
				</div>

				<form action="#">

					<div class="form-group mb-3">
						<label >账号</label>
						<input class="form-control" id="username" type="text" placeholder="请输入账号">
					</div>

					<div class="form-group mb-3">
						<label >密码</label>
						<input class="form-control" id="password" type="password"  placeholder="请输入密码">
					</div>

					<div class="form-group mb-0 text-center">
						<button class="btn btn-primary btn-block" type="button">进入</button>
					</div>
				</form>

			</div>
		</div>

		<div class="product-foot">
			<p>由 <a href="" target="_blank">Houze</a> 高性能企业级PHP框架 | 提供技术支持</p>
		</div>
        <script src="/assets/js/vendor.min.js"></script>
    </body>
</html>


<script>
//送出
$('.btn-block').click(function() {
	$.ajax({
		type: "POST",
		url: "/HttpQueue/login_send",
		data: {
			'username': $('#username').val(),
			'password': $('#password').val(),
		},
		success: function(data) {
			var array = eval('(' + data + ')');
			if (array['code'] == '00') {
                dialog(array['msg'], 'success');
				setTimeout(function() {
					window.location.href = '/HttpQueue/index'
				}, 1200);
			} else {
                dialog(array['msg'], 'error');
			}
		}
	});
});
</script>